//
//  InTrainingProgressCollectionCell.swift
//  DaRings
//
//  Created by 尹琼 on 2022/11/29.
//

import UIKit
import MYModule

open class InTrainingProgressCollectionCell: CollectionViewCell {
    
    open var model: InTrainingModel? {
        
        didSet {
            
            progressView.progress = model?.targetItem?.progress
            progressView.highProgress = model?.targetItem?.highProgress
        }
        
    }
    
    private lazy var progressView = TrainingProgressView()
    
    open override func makeUI() {
        super.makeUI()
        
        contentView.addSubview(progressView)
        
        progressView.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
        
    }
    
}
